package cn.jobstart.modelExt;


import cn.jobstart.common.StringUtil;
import cn.jobstart.es.model.ResumeEs;
import cn.jobstart.modelDesc.AdminJobCandidateDesc;
import lombok.Data;


/**
 * @author sunke
 * @Date 2023-09-06 15:00:20
 * @description AdminJobCandidateExt      职位候选人
 */
@Data
public class AdminJobCandidateExt extends AdminJobCandidateDesc {

    private ResumeEs resumeEs;

    private String truename;
    private String phone;
    private String sex;

    public String getTruename() {
        if (StringUtil.isNotObjEmpty(resumeEs)) {
            truename = resumeEs.getTruename();
        }
        return truename;
    }

    public String getPhone() {
        if (StringUtil.isNotObjEmpty(resumeEs)) {
            phone = resumeEs.getMobile();
        }
        return phone;
    }

    public String getSex() {
        if (StringUtil.isNotObjEmpty(resumeEs)) {
            sex = resumeEs.getSex();
        }
        return sex;
    }


}

